﻿<%@ Page Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="NewOrder.aspx.cs"
    Theme="DXConnect" Inherits="NewOrderForm" %>
<%@ Register assembly="DevExpress.Web.ASPxEditors.v12.1, Version=12.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx1" %>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <div class="mainContent registration">
        <div class="contentHeader">
            <div class="content">
                <img id="registrationTitle" src="Images/title_orders.png" alt="Schedule" />
            </div>
        </div>
        <div class="content">

            <table style="width:100%;">
                <tr>
                    <td>
                        &nbsp;</td>
                    <td>
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                             <dx1:ASPxLabel ID="ASPxLabel4" runat="server" CssClass="title" 
                                 Text="Create New Order" Font-Size="XX-Large">
                             </dx1:ASPxLabel>
                         </td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td>
                        &nbsp;</td>
                    <td>
<table style="width:64%; position: relative; display: inline; top: 0px; left: 176px;" 
            align="center">
    <tr>
        <td class="style1" style="width: 416px">
            Order Name</td>
        <td style="width: 379px">
            <asp:TextBox ID="subjectTextbox" runat="server" Width="338px" Height="30px"></asp:TextBox>
            <br />
        </td>
    </tr>
    <tr>
        <td class="style1" style="width: 416px">
            Description</td>
        <td style="width: 379px">
            <asp:TextBox ID="descriptionTextbox" runat="server" Width="336px" Height="30px"></asp:TextBox>
            <br />
        </td>
    </tr>
    <tr>
        <td class="style1" style="width: 416px">
            Supplier</td>
        <td style="width: 379px">
            <asp:DropDownList ID="supplierDropDownList" runat="server" 
                DataSourceID="supplierSqlDataSource" DataTextField="Name" 
                DataValueField="SupplierID" Height="30px" Width="334px">
            </asp:DropDownList>
            <br />
        </td>
    </tr>
    <tr>
        <td class="style1" style="width: 416px">
            Product</td>
        <td style="width: 379px">
            <asp:DropDownList ID="productDropDownList" runat="server" 
                DataSourceID="productSqlDataSource" DataTextField="Model" 
                DataValueField="ProductID" Height="30px" Width="333px">
            </asp:DropDownList>
            <br />
        </td>
    </tr>
    <tr>
        <td class="style1" style="width: 416px">
            Quantity</td>
        <td style="width: 379px">
            <asp:TextBox ID="quantityTextbox" runat="server" Width="336px" Height="30px"></asp:TextBox>
            <br />
        </td>
    </tr>
    <tr>
        <td class="style1" style="width: 416px">
            Location</td>
        <td style="width: 379px">
            <asp:TextBox ID="locationTextbox" runat="server" Width="336px" Height="30px"></asp:TextBox>
            <br />
        </td>
    </tr>
    <tr>
        <td class="style1" style="width: 416px">
            Start Date</td>
        <td style="width: 379px; overflow: hidden; float: left;">
            <dx1:ASPxDateEdit ID="startDateDateEdit" runat="server" AllowNull="False" 
                Date="2012-07-25" EditFormat="Custom" 
                EditFormatString="dd/MM/yyyy" Height="30px">
            </dx1:ASPxDateEdit>
            <br />
        </td>
    </tr>
    <tr>
        <td class="style1" style="width: 416px">
            End Date</td>
        <td style="width: 379px; overflow: hidden; float: left;">
            <dx1:ASPxDateEdit ID="endDateDateEdit" runat="server" AllowNull="False" 
                Date="2012-07-25" EditFormat="Custom" 
                EditFormatString="dd/MM/yyyy" Height="30px">
            </dx1:ASPxDateEdit>
        </td>
    </tr>
    <tr>
        <td class="style1" style="width: 416px">
            &nbsp;</td>
        <td colspan="1" 
            style="width: 379px; overflow: hidden; float: left; display: table-cell; position: relative;">
            <dx1:ASPxButton ID="ButtonCreateNewOrder" runat="server" 
                onclick="ButtonCreateNewOrder_Click" Text="Create">
            </dx1:ASPxButton>
        </td>
    </tr>
    <tr>
        <td class="style1" style="width: 416px">
        <asp:SqlDataSource ID="productSqlDataSource" runat="server" 
            ConnectionString="<%$ ConnectionStrings:CocShopDatabaseConnectionString %>" 
            SelectCommand="SELECT [ProductID], [Model] FROM [Product]">
        </asp:SqlDataSource>
            <br />
        <asp:SqlDataSource ID="supplierSqlDataSource" runat="server" 
            ConnectionString="<%$ ConnectionStrings:CocShopDatabaseConnectionString %>" 
            SelectCommand="SELECT [SupplierID], [Name] FROM [Supplier]">
        </asp:SqlDataSource>
        </td>
        <td style="width: 379px">
            <asp:Label ID="statusLabel" runat="server" Text="Status: ..." 
                CssClass="newOrderStatus"></asp:Label>
            <br />
        </td>
    </tr>
</table>


                    </td>

                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td>
                        &nbsp;</td>
                    <td>
                        &nbsp;</td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td>
                        &nbsp;</td>
                    <td>
                        &nbsp;</td>
                    <td>
                        &nbsp;</td>
                </tr>
            </table>

        </div>
    </div>
</asp:Content>
